/*
 * ThreadUnit.hpp
 *
 *  Created on: 2013-1-16
 *      Author: heqiu
 */

#ifndef THREADUNIT_H_
#define THREADUNIT_H_

#include "mycomm.h"

int FC_ThreadFunc(void * param);

class ThreadUnit {
public:
	ThreadUnit();
	virtual ~ThreadUnit();
	void start();
	virtual void run() = 0;
private:
	SDL_Thread *m_thread;
	int m_init_flag;
};

#endif /* THREADUNIT_H_ */
